
const USER_INFO = 'USER_INFO'
//存userInfo
const setUserInfo = (userInfo)=>{
    console.log(userInfo)
    localStorage.setItem(USER_INFO,JSON.stringify(userInfo))
}
//取userInfo
const getUserInfo = ()=>{
   return JSON.parse(localStorage.getItem(USER_INFO))

}
//移除userInfo
const removeUserInfo=()=>{
   localStorage.removeItem(USER_INFO)
}
export{setUserInfo,getUserInfo,removeUserInfo,USER_INFO}